<?php
/**
 * Created by PhpStorm.
 * User: hasee
 * Date: 2018/4/10
 * Time: 11:56
 */
$this->registerCssFile('/css/style.css');
?>

<div class="body" style="background: url(/img/zc.jpg)no-repeat;background-size: 100%;width: 100%;padding-top:162%;position: relative;top: 0px;font-size: 20px;">

    <div style="width:60%;height:auto;border: 2px solid rgb(1,153,190);margin-left:20%;text-align:center;position:absolute;top:60%;">
    <img src="/img/inp2.png" style="width:80%;margin-top:-25px;">
    <form style="margin-top:20px;">
        <input style="background: #fff;width:80%;color:#000;" type="text" id="code_id">

    </form>
     <img class="sub4" id="sub44" src="/img/sub.png" style="width:60%;height:auto;margin-top:30px;position: relative;top: 20px;">
    </div>
    
</div>



<script type="text/javascript">

    $(function(){
        $("#sub44").click(function(){
            var num = $("#code_id").val();
            $.get("/summit/verify?code="+num,function(data){
                if(data.code=="50"){
                    alert("Inviting code error");
                }else if(data.code=="200"){
                    window.location.href='/summit/signup?code='+num;
                }
            })
        })
    })

</script>

